<HTML>
<HEAD>
<title>Serializer.hashCode - </title>
<link rel="stylesheet" href="../../style.css">
</HEAD>
<BODY>
<a href="../index.html">org.mapdb</a>&nbsp;/&nbsp;<a href="index.html">Serializer</a>&nbsp;/&nbsp;<a href=".">hashCode</a><br/>
<br/>
<h1>hashCode</h1>
<a name="org.mapdb.Serializer$hashCode(org.mapdb.Serializer.A, kotlin.Int)"></a>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">hashCode</span><span class="symbol">(</span><span class="identifier" id="org.mapdb.Serializer$hashCode(org.mapdb.Serializer.A, kotlin.Int)/o">o</span><span class="symbol">:</span>&nbsp;<span class="identifier">A</span><span class="symbol">, </span><span class="identifier" id="org.mapdb.Serializer$hashCode(org.mapdb.Serializer.A, kotlin.Int)/seed">seed</span><span class="symbol">:</span>&nbsp;<span class="identifier">Int</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Int</span></code><br/>
<p>Returns a hash code of a given non-null argument. The output of the method is affected by the given seed, allowing protection against crafted hash attacks and to provide a better distribution of hashes. </p>
<h3>Parameters</h3>
<a name="o"></a>
<code>o</code> - an object <br/>
<br/>
<a name="seed"></a>
<code>seed</code> - used to "scramble" the <br/>
<h3>Exceptions</h3>
<a name="NullPointerException"></a>
<code>NullPointerException</code> - if the provided object is null<br/>
<p><strong>Return</strong><br/>
a hash code of a non-null argument </p>
<p><strong>See Also</strong><br/>
<a href="#">Object#hashCode</a></p>
<br/>
<br/>
</BODY>
</HTML>
